package Fly;

public class Bullet extends FlyObject{
    private int ySpeed;
    public int getySpeed() {
        return ySpeed;
    }

    public void setySpeed(int ySpeed) {
        this.ySpeed = ySpeed;
    }

    @Override
    public void remove() {
        y-=ySpeed;
    }

    @Override
    public boolean isout() {
        if(y==0) {
            return true;
        } else {
            return false;
        }
    }
}
